<?php
/**
 * @Author: Marte
 * @Date:   2017-08-19 16:53:08
 * @Last Modified by:   Marte
 * @Last Modified time: 2017-08-19 17:12:26
 */
?>
<div class="main_left">
                <span class="main_left_title">新闻公告</span>
                <ul>
                <?php
                        while ($_assoc=$_result->fetch_assoc()) {
                                echo '<li>
                    <a href="notice.php?noticeid='.$_assoc['noticeid'].'" title="">'.$_assoc['noticetitle'].'</a>
                    <span>'.$_assoc['time'].'</span>
                    </li>';
                        }
                ?>

                </ul>
                <div class="num">
                <?php
                echo '<a href="notice.php?page='.($_page-1).'" >上一页</a>';
                for($i=0;$i<$_pagesnum;$i++)
                {
                  echo '<a href="notice.php?page='.($i+1).'">'.($i+1).'</a>';
                }
                echo '<a href="notice.php?page='.($_page+1).'" >下一页</a>';
            ?>
                    <!-- <a href="" title="">上一页</a>

                    <a href="" title="">2</a>
                    <a href="" title="">3</a>
                    <a href="" title="">4</a>
                    <a href="" title="">下一页</a> -->
                </div>
             </div>